import request from '@/utils/request'

// 查询影票订单列表
export function listOrderTicket(query) {
  return request({
    url: '/order/orderTicket/list',
    method: 'get',
    params: query
  })
}

// 查询影票订单详细
export function getOrderTicket(id) {
  return request({
    url: '/order/orderTicket/' + id,
    method: 'get'
  })
}

// 新增影票订单
export function addOrderTicket(data) {
  return request({
    url: '/order/orderTicket',
    method: 'post',
    data: data
  })
}

// 修改影票订单
export function updateOrderTicket(data) {
  return request({
    url: '/order/orderTicket',
    method: 'put',
    data: data
  })
}

// 删除影票订单
export function delOrderTicket(id) {
  return request({
    url: '/order/orderTicket/' + id,
    method: 'delete'
  })
}

// 导出影票订单
export function exportOrderTicket(query) {
  return request({
    url: '/cinema/orderTicket/export',
    method: 'get',
    params: query
  })
}
